#ifndef GAME_H
#define GAME_H
#include "inetworkmanager.h"

#include <string>
#include <list>

class Game
{

 public:
  
  Game(std::string const &name, PortableNetworkManager *net);
  Game();
  ~Game();

  void setNetwork(PortableNetworkManager *);
  PortableNetworkManager *getNetwork();

  int			getId() const;
  void			setId(int id);
  int			getPort() const {return _port;};
  std::string const &	getName() const;
  void			setName(std::string const &name);
  int			getNbPlayers(){return _nbPlayers;};
  void			addPlayers(Player *);
  void			lockGame(){_locked = true;};
  bool			isLocked() {return _locked;};

 private:
  int				_id;
  int				_port;
  int				_nbPlayers;
  bool				_locked;
  std::string			_name;
  PortableNetworkManager	*_network;
};

extern int incId;
extern int portId;
#endif
